3.12.58 \(\int \frac {A+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}} \, dx\) [1158]
Optimal. Leaf size=173 \[ -\frac {C \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{\sqrt {a} d}+\frac {\sqrt {2} (A+C) \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{\sqrt {a} d}+\frac {C \sin (c+d x)}{d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \]
[Out]
-C*arcsinh(a^(1/2)*tan(d*x+c)/(a+a*sec(d*x+c))^(1/2))*cos(d*x+c)^(1/2)*sec(d*x+c)^(1/2)/d/a^(1/2)+(A+C)*arctan
h(1/2*sin(d*x+c)*a^(1/2)*sec(d*x+c)^(1/2)*2^(1/2)/(a+a*sec(d*x+c))^(1/2))*2^(1/2)*cos(d*x+c)^(1/2)*sec(d*x+c)^
(1/2)/d/a^(1/2)+C*sin(d*x+c)/d/cos(d*x+c)^(3/2)/(a+a*sec(d*x+c))^(1/2)
________________________________________________________________________________________
Rubi [A]
time = 0.33, antiderivative size = 173, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 37, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.189, Rules used = {4350, 4174,
4108, 3893, 212, 3886, 221} \begin {gather*} \frac {\sqrt {2} (A+C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x) \sqrt {\sec (c+d x)}}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{\sqrt {a} d}+\frac {C \sin (c+d x)}{d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}-\frac {C \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{\sqrt {a} d} \end {gather*}
Antiderivative was successfully verified.
[In]
Int[(A + C*Sec[c + d*x]^2)/(Sqrt[Cos[c + d*x]]*Sqrt[a + a*Sec[c + d*x]]),x]
[Out]
-((C*ArcSinh[(Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]]*Sqrt[Cos[c + d*x]]*Sqrt[Sec[c + d*x]])/(Sqrt[a]*
d)) + (Sqrt[2]*(A + C)*ArcTanh[(Sqrt[a]*Sqrt[Sec[c + d*x]]*Sin[c + d*x])/(Sqrt[2]*Sqrt[a + a*Sec[c + d*x]])]*S
qrt[Cos[c + d*x]]*Sqrt[Sec[c + d*x]])/(Sqrt[a]*d) + (C*Sin[c + d*x])/(d*Cos[c + d*x]^(3/2)*Sqrt[a + a*Sec[c +
d*x]])
Rule 212
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
/; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])
Rule 221
Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSinh[Rt[b, 2]*(x/Sqrt[a])]/Rt[b, 2], x] /; FreeQ[{a, b},
x] && GtQ[a, 0] && PosQ[b]
Rule 3886
Int[Sqrt[csc[(e_.) + (f_.)*(x_)]*(d_.)]*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[-2*(a/(b
*f))*Sqrt[a*(d/b)], Subst[Int[1/Sqrt[1 + x^2/a], x], x, b*(Cot[e + f*x]/Sqrt[a + b*Csc[e + f*x]])], x] /; Free
Q[{a, b, d, e, f}, x] && EqQ[a^2 - b^2, 0] && GtQ[a*(d/b), 0]
Rule 3893
Int[Sqrt[csc[(e_.) + (f_.)*(x_)]*(d_.)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[-2*b*(d/
(a*f)), Subst[Int[1/(2*b - d*x^2), x], x, b*(Cot[e + f*x]/(Sqrt[a + b*Csc[e + f*x]]*Sqrt[d*Csc[e + f*x]]))], x
] /; FreeQ[{a, b, d, e, f}, x] && EqQ[a^2 - b^2, 0]
Rule 4108
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*
(B_.) + (A_)), x_Symbol] :> Dist[(A*b - a*B)/b, Int[(a + b*Csc[e + f*x])^m*(d*Csc[e + f*x])^n, x], x] + Dist[B
/b, Int[(a + b*Csc[e + f*x])^(m + 1)*(d*Csc[e + f*x])^n, x], x] /; FreeQ[{a, b, d, e, f, A, B, m}, x] && NeQ[A
*b - a*B, 0] && EqQ[a^2 - b^2, 0]
Rule 4174
Int[((A_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.))*(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b
_.) + (a_))^(m_), x_Symbol] :> Simp[(-C)*Cot[e + f*x]*(a + b*Csc[e + f*x])^m*((d*Csc[e + f*x])^n/(f*(m + n + 1
))), x] + Dist[1/(b*(m + n + 1)), Int[(a + b*Csc[e + f*x])^m*(d*Csc[e + f*x])^n*Simp[A*b*(m + n + 1) + b*C*n +
a*C*m*Csc[e + f*x], x], x], x] /; FreeQ[{a, b, d, e, f, A, C, m, n}, x] && EqQ[a^2 - b^2, 0] && !LtQ[m, -2^(
-1)] && !LtQ[n, -2^(-1)] && NeQ[m + n + 1, 0]
Rule 4350
Int[(cos[(a_.) + (b_.)*(x_)]*(c_.))^(m_.)*(u_), x_Symbol] :> Dist[(c*Cos[a + b*x])^m*(c*Sec[a + b*x])^m, Int[A
ctivateTrig[u]/(c*Sec[a + b*x])^m, x], x] /; FreeQ[{a, b, c, m}, x] && !IntegerQ[m] && KnownSecantIntegrandQ[
u, x]
Rubi steps
\begin {align*} \int \frac {A+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)} \sqrt {a+a \sec (c+d x)}} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\sec (c+d x)} \left (A+C \sec ^2(c+d x)\right )}{\sqrt {a+a \sec (c+d x)}} \, dx\\ &=\frac {C \sin (c+d x)}{d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\sec (c+d x)} \left (\frac {1}{2} a (2 A+C)-\frac {1}{2} a C \sec (c+d x)\right )}{\sqrt {a+a \sec (c+d x)}} \, dx}{a}\\ &=\frac {C \sin (c+d x)}{d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\frac {\left (C \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)} \, dx}{2 a}+\left ((A+C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+a \sec (c+d x)}} \, dx\\ &=\frac {C \sin (c+d x)}{d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {\left (C \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{a}}} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{a d}-\frac {\left (2 (A+C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,-\frac {a \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}\\ &=-\frac {C \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{\sqrt {a} d}+\frac {\sqrt {2} (A+C) \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{\sqrt {a} d}+\frac {C \sin (c+d x)}{d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.44, size = 105, normalized size = 0.61 \begin {gather*} \frac {\cos \left (\frac {1}{2} (c+d x)\right ) \left (2 (A+C) \tanh ^{-1}\left (\sin \left (\frac {1}{2} (c+d x)\right )\right ) \cos (c+d x)-\sqrt {2} C \tanh ^{-1}\left (\sqrt {2} \sin \left (\frac {1}{2} (c+d x)\right )\right ) \cos (c+d x)+2 C \sin \left (\frac {1}{2} (c+d x)\right )\right )}{d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a (1+\sec (c+d x))}} \end {gather*}
Antiderivative was successfully verified.
[In]
Integrate[(A + C*Sec[c + d*x]^2)/(Sqrt[Cos[c + d*x]]*Sqrt[a + a*Sec[c + d*x]]),x]
[Out]
(Cos[(c + d*x)/2]*(2*(A + C)*ArcTanh[Sin[(c + d*x)/2]]*Cos[c + d*x] - Sqrt[2]*C*ArcTanh[Sqrt[2]*Sin[(c + d*x)/
2]]*Cos[c + d*x] + 2*C*Sin[(c + d*x)/2]))/(d*Cos[c + d*x]^(3/2)*Sqrt[a*(1 + Sec[c + d*x])])
________________________________________________________________________________________
Maple [A]
time = 0.19, size = 249, normalized size = 1.44
| | |
method |
result |
size |
| | |
default |
\(-\frac {\left (-1+\cos \left (d x +c \right )\right ) \left (-C \sqrt {2}\, \cos \left (d x +c \right ) \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (-1-\cos \left (d x +c \right )+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right )-C \sqrt {2}\, \cos \left (d x +c \right ) \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (1+\cos \left (d x +c \right )+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right )+4 A \cos \left (d x +c \right ) \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right )+2 C \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )+4 C \cos \left (d x +c \right ) \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right )\right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}}{2 d a \sin \left (d x +c \right )^{2} \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sqrt {\cos \left (d x +c \right )}}\) |
\(249\) |
| | |
|
|
|
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((A+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2)/(a+a*sec(d*x+c))^(1/2),x,method=_RETURNVERBOSE)
[Out]
-1/2/d*(-1+cos(d*x+c))*(-C*2^(1/2)*cos(d*x+c)*arctan(1/4*(-2/(1+cos(d*x+c)))^(1/2)*(-1-cos(d*x+c)+sin(d*x+c))*
2^(1/2))-C*2^(1/2)*cos(d*x+c)*arctan(1/4*(-2/(1+cos(d*x+c)))^(1/2)*(1+cos(d*x+c)+sin(d*x+c))*2^(1/2))+4*A*cos(
d*x+c)*arctan(1/2*sin(d*x+c)*(-2/(1+cos(d*x+c)))^(1/2))+2*C*(-2/(1+cos(d*x+c)))^(1/2)*sin(d*x+c)+4*C*cos(d*x+c
)*arctan(1/2*sin(d*x+c)*(-2/(1+cos(d*x+c)))^(1/2)))*(a*(1+cos(d*x+c))/cos(d*x+c))^(1/2)/a/sin(d*x+c)^2/(-2/(1+
cos(d*x+c)))^(1/2)/cos(d*x+c)^(1/2)
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 18526 vs.
\(2 (144) = 288\).
time = 0.76, size = 18526, normalized size = 107.09 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((A+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2)/(a+a*sec(d*x+c))^(1/2),x, algorithm="maxima")
[Out]
1/4*(2*(sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - sqrt(2)*lo
g(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1))*A/sqrt(a) + ((2*sqrt(2)*log(c
os(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2
*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x +
1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2
+ 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos
(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*
c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)
*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c)^4 + (2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 +
2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x +
1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqr
t(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d
*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 -
2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/
2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*sin(d*x + c)^4 + 4*sq
rt(2)*cos(1/2*d*x + 1/2*c)*sin(d*x + c)^3 + 4*(2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 +
2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x +
1/2*c) + 1) - sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt
(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x
+ 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)
^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*c
os(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/
2*c) + 2))*cos(d*x + c)^3 + ((2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x +
1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - lo
g(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x
+ 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*
sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/
2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2
- 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c)^2 + (2*sqrt(2)*log(cos(1
/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^
2 + sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*
c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2
*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) - log(2*cos(1/2
*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) +
2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin
(1/2*d*x + 1/2*c) + 2))*sin(d*x + c)^2 - 4*sqrt(2)*cos(1/2*d*x + 1/2*c)*sin(d*x + c) + 2*(2*sqrt(2)*log(cos(1/
2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2
+ sin(1/2*d*x + 1/2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x +
1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) + 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) +
log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d
*x + 1/2*c) + 2) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(1/2*d*x + 1/2*c) +
2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2) + log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c)^2 - 2*sqrt(2)*cos(
1/2*d*x + 1/2*c) - 2*sqrt(2)*sin(1/2*d*x + 1/2*c) + 2))*cos(d*x + c) + 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 +
sin(1/2*d*x + 1/2*c)^2 + 2*sin(1/2*d*x + 1/2*c) + 1) - 2*sqrt(2)*log(cos(1/2*d*x + 1/2*c)^2 + sin(1/2*d*x + 1/
2*c)^2 - 2*sin(1/2*d*x + 1/2*c) + 1) + 4*sqrt(2)*sin(1/2*d*x + 1/2*c) - log(2*cos(1/2*d*x + 1/2*c)^2 + 2*sin(1
/2*d*x + 1/2*c)^2 + 2*sqrt(2)*cos(1/2*d*x + 1/2...
________________________________________________________________________________________
Fricas [A]
time = 3.20, size = 542, normalized size = 3.13 \begin {gather*} \left [\frac {4 \, C \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) + {\left (C \cos \left (d x + c\right )^{2} + C \cos \left (d x + c\right )\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} + 4 \, \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} {\left (\cos \left (d x + c\right ) - 2\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 7 \, a \cos \left (d x + c\right )^{2} + 8 \, a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2}}\right ) + \frac {2 \, \sqrt {2} {\left ({\left (A + C\right )} a \cos \left (d x + c\right )^{2} + {\left (A + C\right )} a \cos \left (d x + c\right )\right )} \log \left (-\frac {\cos \left (d x + c\right )^{2} - \frac {2 \, \sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt {a}} - 2 \, \cos \left (d x + c\right ) - 3}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right )}{\sqrt {a}}}{4 \, {\left (a d \cos \left (d x + c\right )^{2} + a d \cos \left (d x + c\right )\right )}}, -\frac {2 \, \sqrt {2} {\left ({\left (A + C\right )} a \cos \left (d x + c\right )^{2} + {\left (A + C\right )} a \cos \left (d x + c\right )\right )} \sqrt {-\frac {1}{a}} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {-\frac {1}{a}} \sqrt {\cos \left (d x + c\right )}}{\sin \left (d x + c\right )}\right ) - 2 \, C \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) + {\left (C \cos \left (d x + c\right )^{2} + C \cos \left (d x + c\right )\right )} \sqrt {-a} \arctan \left (\frac {2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{a \cos \left (d x + c\right )^{2} - a \cos \left (d x + c\right ) - 2 \, a}\right )}{2 \, {\left (a d \cos \left (d x + c\right )^{2} + a d \cos \left (d x + c\right )\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((A+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2)/(a+a*sec(d*x+c))^(1/2),x, algorithm="fricas")
[Out]
[1/4*(4*C*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c) + (C*cos(d*x + c)^2 + C*cos(
d*x + c))*sqrt(a)*log((a*cos(d*x + c)^3 + 4*sqrt(a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*(cos(d*x + c) - 2)
*sqrt(cos(d*x + c))*sin(d*x + c) - 7*a*cos(d*x + c)^2 + 8*a)/(cos(d*x + c)^3 + cos(d*x + c)^2)) + 2*sqrt(2)*((
A + C)*a*cos(d*x + c)^2 + (A + C)*a*cos(d*x + c))*log(-(cos(d*x + c)^2 - 2*sqrt(2)*sqrt((a*cos(d*x + c) + a)/c
os(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c)/sqrt(a) - 2*cos(d*x + c) - 3)/(cos(d*x + c)^2 + 2*cos(d*x + c) +
1))/sqrt(a))/(a*d*cos(d*x + c)^2 + a*d*cos(d*x + c)), -1/2*(2*sqrt(2)*((A + C)*a*cos(d*x + c)^2 + (A + C)*a*co
s(d*x + c))*sqrt(-1/a)*arctan(sqrt(2)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sqrt(-1/a)*sqrt(cos(d*x + c))/si
n(d*x + c)) - 2*C*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c) + (C*cos(d*x + c)^2
+ C*cos(d*x + c))*sqrt(-a)*arctan(2*sqrt(-a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*
x + c)/(a*cos(d*x + c)^2 - a*cos(d*x + c) - 2*a)))/(a*d*cos(d*x + c)^2 + a*d*cos(d*x + c))]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {A + C \sec ^{2}{\left (c + d x \right )}}{\sqrt {a \left (\sec {\left (c + d x \right )} + 1\right )} \sqrt {\cos {\left (c + d x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((A+C*sec(d*x+c)**2)/cos(d*x+c)**(1/2)/(a+a*sec(d*x+c))**(1/2),x)
[Out]
Integral((A + C*sec(c + d*x)**2)/(sqrt(a*(sec(c + d*x) + 1))*sqrt(cos(c + d*x))), x)
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((A+C*sec(d*x+c)^2)/cos(d*x+c)^(1/2)/(a+a*sec(d*x+c))^(1/2),x, algorithm="giac")
[Out]
integrate((C*sec(d*x + c)^2 + A)/(sqrt(a*sec(d*x + c) + a)*sqrt(cos(d*x + c))), x)
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {A+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {a+\frac {a}{\cos \left (c+d\,x\right )}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((A + C/cos(c + d*x)^2)/(cos(c + d*x)^(1/2)*(a + a/cos(c + d*x))^(1/2)),x)
[Out]
int((A + C/cos(c + d*x)^2)/(cos(c + d*x)^(1/2)*(a + a/cos(c + d*x))^(1/2)), x)
________________________________________________________________________________________